import { http } from "@/utils/http";

/**
 可视化巡检接口
 **/

// 可视化--左侧巡检路线
export const queryList = (data: object) => {
  return http.request("post", `/digitaltwins/api/v1/inspectionRoute/queryList`, {
    data
  });
};
// 可视化--新增/编辑左侧巡检路线
export const saveOrUpdate = (data: object) => {
  return http.request("post", `/digitaltwins/api/v1/inspectionRoute/saveOrUpdate`, {
    data
  });
};
// 可视化--删除左侧巡检路线
export const delById = (data: object) => {
  return http.request("post", `/digitaltwins/api/v1/inspectionRoute/delById`, {
    data
  });
};
// 可视化--右侧表格
export const queryListTable = (data: object) => {
  return http.request("post", `/digitaltwins/api/v1/inspectionRouteItem/queryList`, {
    data
  });
};
// 可视化--右侧新增巡检项目
export const saveOrUpdateBatch = (data: object) => {
  return http.request("post", `/digitaltwins/api/v1/inspectionRouteItem/saveOrUpdateBatch`, {
    data
  });
};
// 可视化--右侧巡检项目置顶
export const top = (data: object) => {
  return http.request("post", `/digitaltwins/api/v1/inspectionRouteItem/top`, {
    data
  });
};
// 可视化--右侧巡检项目置底
export const bottom = (data: object) => {
  return http.request("post", `/digitaltwins/api/v1/inspectionRouteItem/bottom`, {
    data
  });
};
// 可视化--删除右侧表格某一项
export const delTableId = (data: object) => {
  return http.request("post", `/digitaltwins/api/v1/inspectionRouteItem/delByIds`, {
    data
  });
};
